<template>
	<view class="fenxiangbufen">
		<image class="fenxiangbufen_img" src="../../static/fenxianghaoyou.png"></image>
		<view class="fenxiangbufen_imgbox">
			<image class="fenxiangbufen_imgbox_img" src="../../static/返回.png" @click="goToIndex"></image>
		</view>
	</view>

	<view class="nrbox">
		<view class="nrbox_textbox">
			<view class="nrbox_textbox_text">查看链接</view>
		</view>
		<view class="nrbox_textbox">
			<view class="nrbox_textbox_text">查看备用链接1</view>
		</view>
		<view class="nrbox_textbox">
			<view class="nrbox_textbox_text">查看备用链接2</view>
		</view>
		<view class="nrbox_textbox">
			<view class="nrbox_textbox_text">查看备用链接3</view>
		</view>
		<view class="nrbox_textbox">
			<view class="nrbox_textbox_text">查看备用链接4</view>
		</view>
		<view class="nrbox_textbox">
			<view class="nrbox_textbox_text">查看备用链接5</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		methods: {
			// 跳转到首页的方法
			goToIndex() {
				// 在 tabbar 中使用 uniapp 的 switchTab 方法跳转
				uni.switchTab({
					url: '/pages/index/index', // 首页路径
				});
			},
		}
	}
</script>

<style>
	.fenxiangbufen {
		position: relative;
		width: 100%;
		height: 100vh;
	}

	.fenxiangbufen_img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		/* 确保图片覆盖整个容器 */
	}

	.fenxiangbufen_imgbox {
		position: absolute;
		top: 12px;
		left: 10px;
	}

	.fenxiangbufen_imgbox_img {
		width: 24px;
		height: 24px;
	}

	.nrbox {
		margin-top: 20px;
		padding: 2%;
		justify-content: center;
		/* 水平居中 */
		align-items: center;
		/* 垂直居中 */
	}

	.nrbox_textbox {
		background-image: linear-gradient(180deg, #ff7d55, #e3221b);
		padding: 10px 20px;
		border-radius: 5px;
		color: #fff;
		font-weight: 800;
		font-size: 17px;
		text-align: center;
		border-radius: 28px;
		letter-spacing: 2px;
		box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, .2);
		width: 70%;
		margin: 0 auto 3%;
	}

	.nrbox_textbox_text {
		/* 这里可以添加更多的样式，如果需要 */
	}
</style>
